/**
 * Created by Darkness on 14-1-6.
 */
(function($) {
    var arkflow = $.arkflow;

    // 创建路径对象
    arkflow.PathLine = Base.extend({
        constructor : function(path) {
            this.path = path;
            this.paper = path.paper;
            this.comp = this.paper.path(path.pathConfig.attr.path.path).attr(path.pathConfig.attr.path);
            this.node = this.comp.node;
        },
        draw: function() {
            var pathStr = this.path.linePoints.toPathString();
            this.comp.attr({
                path : pathStr[0]
            });
        },
        attr: function(p) {
            this.comp.attr(p);
        },
        remove:function() {
            this.comp.remove();
        }
    });
})(jQuery);
